package com.xzit.day07.enums;

import com.baomidou.mybatisplus.annotation.IEnum;

public enum UserStatus implements IEnum<Integer> {
    ACTIVE(0, "激活"),
    INACTIVE(1, "未激活");
    
    private final int code;
    private final String desc;
    
    UserStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    public String toString() {
        return this.desc;
    }
    @Override
    public Integer getValue() {
        return this.code;
    }
}